<?php

/**
 * @Author: wuchenge
 * @Date: 2020-11-30 17:18:08
 * @email: ligui0506@sina.com
 * @descript: 后台用户生成器
 */

use App\Models\Admin;
use Illuminate\Database\Seeder;

class AdminsTableSeeder extends Seeder
{
    public function run()
    {
        $pwd  = Admin::encodePwd(md5('admins'));
        $data = [
            'account'   => 'admins',
            'pwd'       => $pwd,
            'nick_name' => '超级管理员',
        ];
        Admin::create($data);
    }
}
